/**
 * @author        Nicolas Bottarini <nicolasbottarini@gmail.com>, 404 <http://www.proyecto404.com>
 * @version       $Rev: 3 $
 * @lastrevision  $Date: 2011-09-12 16:45:37 +0000 (Mon, 12 Sep 2011) $	 
 */
package com.proyecto404.core.util {
	import com.proyecto404.core.BaseObject;
	import com.proyecto404.core.Timer;
	
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	/**
	 * @static
	 */
	public class TimerHelper extends BaseObject {
		public static function delayCall(interval:Number, func:Function):void {
			var timer:flash.utils.Timer = new flash.utils.Timer(interval, 1);
			timer.addEventListener(TimerEvent.TIMER, function():void {
				func.call(null);				
			});  
			timer.start();
		}
	}
}